﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Jack.ITask
{
    public class TaskSpider
    {
        static bool bCreatedNew;
        private static object _obj = new object();
        public static void Start()
       {
           lock(_obj)
           {
               Mutex m =new Mutex( false, "TaskSpidercs", out bCreatedNew );
               if( bCreatedNew )
               {
                   ITask task = new TaskMange();
                   task.Start();
               }
               else
               {
                   Console.WriteLine("Started!");
               }
           }
       }
    }
}
